package com.project.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
@ExcelTarget("Sup")
@TableName("t_sup")
public class SupBean {
    @TableId(value = "pk_supId",type = IdType.AUTO)
    private Integer id;
    @TableField("s_name")
    @Excel( name = "名字")
    private String name;
    @Excel( name = "负责人")
    @TableField("s_person")
    private String person;
    @Excel( name = "负责人电话")
    @TableField("s_phone")
    private String phone;
    @Excel( name = "供应商地址")
    @TableField("s_addr")
    private String addr ;
    @Excel( name = "经营范围")
    @TableField("s_type")
    private String type;

    public SupBean() {
    }

    public SupBean(String name, String person, String phone, String addr, String type) {
        this.name = name;
        this.person = person;
        this.phone = phone;
        this.addr = addr;
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "SupBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", person='" + person + '\'' +
                ", phone='" + phone + '\'' +
                ", addr='" + addr + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
